<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>购物车</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5, user-scalable=no,viewport-fit=cover">
		<meta name="format-detection" content="telephone=no">
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="stylesheet" href="../../css/common.css" />
		<link rel="stylesheet" href="../../css/shopcar/index.css" />
		<script type="application/javascript" src="../../js/common/static_common.js"></script>
	</head>
	<body>
		<span id="app" v-cloak>
			<header title="购物车"></header>
			<div class="_div data-v-68665296 container" :class="{bgClass:shopCars.length==0}">
				<p class="_p data-v-68665296 total" v-if="shopCars.length>0">共计
					<span class="_span data-v-68665296 totalNum">{{shopCars.length}}</span>件商品
					<span class="_span data-v-68665296 editBtn" data-comkey="0" data-eventid="0" @click="changeEdit()">{{!edit?'编辑':'完成'}}</span>
				</p>
				<div class="_scroll-view data-v-68665296 scroll_view" scroll-y="">
					<div class="_div data-v-68665296 mall padding_bottom" v-for="item in shopCars">
						<div class="_div data-v-68665296 left" @click="checked(item)">
							<img class="_input data-v-68665296 radio" :src="item.check?'../../images/check.png':'../../images/uncheck.png'" />
						</div>
						<div class="_div data-v-68665296 right">
							<div class="_div data-v-68665296 imgbox">
								<img class="_img data-v-68665296 mall_img" :src="imgUrl+item.homePath.split(',')[0]" />
							</div>
							<span class="_span data-v-68665296 mall_status" v-if="item.over">已售罄</span>
							<span class="_span data-v-68665296 mall_name">{{item.productName}}</span>
							<span class="_span data-v-68665296 mall_specs">{{item.productModelName}}</span>
							<div class="_div data-v-68665296 mall_price">
								<div class="_div data-v-68665296 pay_type">
									<span class="_span data-v-68665296 price">
										<span class="_span data-v-68665296 money">
											<span class="_span data-v-68665296 money_cent">￥</span>{{item.price}}
										</span>
										<span class="_span data-v-68665296 cent" v-if="item.points>0">
											<span class="_span data-v-68665296 money_cent"> +积分</span>{{item.points}}
										</span>
									</span>
								</div>
								<div class="_div data-v-68665296 count">
									<span class="_span data-v-68665296 box" data-comkey="0" data-eventid="2-0" @click="reduceCount(item)">-</span>
									<span class="_span data-v-68665296 box box1">{{item.count}}</span>
									<span class="_span data-v-68665296 box" data-comkey="0" data-eventid="3-0" @click="addCount(item)">+</span>
								</div>
							</div>
						</div>
					</div>

					<div class="_div data-v-68665296 zhanwei"></div>
				</div>
				<div class="_div data-v-68665296 bottom" v-if="shopCars.length>0">
					<div class="_div data-v-68665296 bottom_item">
						<img class="data-v-68665296 totalCheck" :src="allCheck?'../../images/check.png':'../../images/uncheck.png'"
						 @click="allChecked()" />
						全选
						<div class="_div data-v-68665296 favorites"data-comkey="0"data-eventid="6" v-if="edit" @click="collect()"> 移入收藏 </div>
						<div class="_div data-v-68665296 del"data-comkey="0"data-eventid="7" v-if="edit" @click="remove()"> 删除 </div>
						<div class="_div data-v-68665296 total_bottom" v-if="!edit">
							合计:
							<div class="_p data-v-68665296 price n_price">
								<span class="_span data-v-68665296 cent" v-if="allPoints>0">
									<div class="_i data-v-68665296 money_cent money_cents">积分</div>
									{{allPoints}}
								</span>
								<span class="_span data-v-68665296 money">￥{{allPrice}}</span>
							</div>
						</div>
						<button class="_button data-v-68665296 calculate" data-comkey="0" data-eventid="5" v-if="!edit" @click="toCash()">
							结算
							<span class="_span data-v-68665296">({{allCount}})</span>
						</button>
					</div>
				</div>
			</div>

		</span>
	</body>
	<script type="application/javascript" src="../../js/shopcar/index.js"></script>
</html>
